<!DOCTYPE html>
<html lang="en">
<head>
  <title>浩然金融中心管理平台</title>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"
        name="viewport">
  <#include "/common/csslib.html">
</head>
<body>
<div class="main-wrapper">
  <!-- start: MAIN CONTAINER -->
  <div class="main-container inner">
    <!-- start: PAGE -->
    <div class="main-content">
      <div class="container">
        <div class="row h-home-path">
          <div class="col-md-12">
            <ol class="breadcrumb">
              <li><i class="fa fa-home"></i>&nbsp;&nbsp;所在位置</li>
              <li>首页</li>
              <li class="active">生成接口Excel文档</li>
            </ol>
          </div>
        </div>
        <div class="row h-main-search">
          <form action="javascript:;" method="post">
            <div class="pull-right h-btn-group">
              <@permission btnType="generateDoc" btnId="saveBtn" btnValue="生成接口Excel文档" op="api:facadeExcel:save"
              btnMethod="ApiFacadeExcelMgr.submitForm()"/>
            </div>
          </form>
        </div>

        <div class="form-horizontal  h-form-warp">
          <div class="h-msg-title h-table-header">
            <strong>接口Excel文档</strong>
          </div>
          <form action="/apiFacade/generateExcel" class="form-horizontal" id="apiFacadeExcelForm"
                method="post" role="form">
            <div class="form-group">
              <label class="col-sm-2 control-label">项目编码 ：</label>
              <div class="col-sm-8">
                <input class="form-control" id="projectCode" name="projectCode"
                       required="required" type="text" value="${facadeGenerateConfig.projectCode!}"/>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">项目名称 ：</label>
              <div class="col-sm-8">
                <input class="form-control" id="projectName" name="projectName"
                       required="required" type="text" value="${facadeGenerateConfig.projectName!}"/>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">class文件所在路径 ：</label>
              <div class="col-sm-8">
                <input class="form-control" id="targetPath" name="targetPath"
                       required="required" type="text" value="${facadeGenerateConfig.targetPath!}"/>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">接口路径前缀 ：</label>
              <div class="col-sm-8">
                <input class="form-control" id="facadeUrlPrefix" name="facadeUrlPrefix" required="required"
                       type="text" value="${facadeGenerateConfig.facadeUrlPrefix!}"/>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">接口文件路径 ：</label>
              <div class="col-sm-8">
                <input class="form-control" id="facadeFilePaths" name="facadeFilePaths" required="required"
                       type="text" value="${facadeGenerateConfig.facadeFilePaths!}"/>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label text-right">接口参数文件路径列表：</label>
              <div class="col-sm-8">
									 <textarea class="col-sm-12" id="facadeParamFilePaths" name="facadeParamFilePaths" required="required"
                             rows="70" style="height:100px">${facadeGenerateConfig.facadeParamFilePaths!}</textarea>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
<!--            <div class="form-group">-->
<!--              <label class="col-sm-2 control-label text-right">接口文档输出路径：</label>-->
<!--              <div class="col-sm-8">-->
<!--									 <textarea class="col-sm-12" id="outputPath" name="outputPath" required="required"-->
<!--                             rows="70" style="height:100px">${facadeGenerateConfig.outputPath!}</textarea>-->
<!--              </div>-->
<!--              <div class="col-sm-1">-->
<!--                <span class="required">*</span>-->
<!--              </div>-->
<!--            </div>-->
            <div class="form-group">
              <label class="col-sm-2 control-label text-right">枚举匹配格式：</label>
              <div class="col-sm-8">
									 <textarea class="col-sm-12" id="enumPatterns" name="enumPatterns" required="required"
                             rows="70" style="height:100px">${facadeGenerateConfig.enumPatterns!}</textarea>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label text-right">枚举扫描包路径：</label>
              <div class="col-sm-8">
									 <textarea class="col-sm-12" id="enumSacnPackage" name="enumSacnPackage" required="required"
                             rows="70" style="height:100px">${facadeGenerateConfig.enumSacnPackage!}</textarea>
              </div>
              <div class="col-sm-1">
                <span class="required">*</span>
              </div>
            </div>
            <div class="form-group">
              <@PageDict dict_name="generateHeaderParam" dict_desc="是否生成header信息" dict_key="std_zb_yn"
              dict_value="${facadeGenerateConfig.generateHeaderParam!}" dict_type="select"
              label_class="col-sm-2 control-label" dict_class="col-sm-8" required="required" default_value="N"/>
            </div>
          </form>
        </div>
      </div>
    </div>
    <!-- end: PAGE -->
  </div>
  <!-- end: MAIN CONTAINER -->
</div>

<#include "/common/jslib.html">
<!-- 弹窗下拉 -->
<script type="text/javascript">
    $(function () {
        // 页面操作类型：add(添加)-edit(编辑)-view(查看)
        // 弹出窗体控制
        ApiFacadeExcelMgr = {
            // 初始化
            init: function () {
            },
            // init end

            // 提交数据
            submitForm: function () {
                Jmts.ajaxSubmit(document.getElementById("apiFacadeExcelForm"), function (result) {
                    if (result.success) {
                        Jmts.succTips(result.msg);
                    } else {
                        Jmts.warnTips(result.msg);
                    }
                });
                return false;
            },
            // submitForm end
        };
        // 执行初始化
        ApiFacadeExcelMgr.init();
        // 前台验证表单
        $("#apiFacadeExcelForm").validate();
    });
</script>
</body>
</html>
